package chapter02.exercise;

/**
 * 基本类型初始化数值
 *
 * @author lipengxiang
 */
public class BaseType {

    byte b;
    short s;
    int i;
    long l;
    float f;
    double d;
    boolean boo;
    char c;

    public BaseType() {
        System.out.println(b);
        System.out.println(s);
        System.out.println(i);
        System.out.println(l);
        System.out.println(f);
        System.out.println(d);
        System.out.println(boo);
        System.out.println();
        System.out.println(c);
    }

    public static void main(String[] args) {
        byte b2 = -2;
        int i = Integer.MAX_VALUE;
        System.out.println(i + 1);
    }

    public static void label() {

        label1:
        for (int i = 0; i < 10; i++) {
            label2:
            for (int j = 0; j < 20; j++) {

            }
        }

    }
}
